From: Jonas Dreßler Date: Sat, 20 Feb 2021 11:51:32 +0000 (+0100) Subject: keyboard: Make a few functions private X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~139 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9f415f1c89f1c978b37356537e4e69fddb5f2aad;p=gnome-shell.git keyboard: Make a few functions private Now that we got rid of the external calls to setCursorLocation(), we can make that private. animateShow() and animateHide() weren't called from outside anyway, so let's make those private, too. Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 2d7e50664..ddec8b3ae 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -1765,7 +1765,7 @@ var Keyboard = GObject.registerClass({ return; this._relayout(); - this.animateShow(); + this._animateShow(); this._setEmojiActive(false); } @@ -1792,11 +1792,11 @@ var Keyboard = GObject.registerClass({ if (this._keyboardRequested) return; - this.animateHide(); + this._animateHide(); this.setCursorLocation(null); } - animateShow() { + _animateShow() { if (this._focusWindow) this._animateWindow(this._focusWindow, true); @@ -1824,7 +1824,7 @@ var Keyboard = GObject.registerClass({ keyboardBox.queue_relayout(); } - animateHide(immediate) { + _animateHide(immediate) { if (this._focusWindow) this._animateWindow(this._focusWindow, false); @@ -1869,7 +1869,7 @@ var Keyboard = GObject.registerClass({ gestureCancel() { if (this._gestureInProgress) - this.animateHide(); + this._animateHide(); this._gestureInProgress = false; }